
import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {
  title = 'Angular Cli';
  is_login = true

  ngOnInit():void {
    this.is_login = window.localStorage.token ? false : true
  }
  OnchangeLoginStatus(token: string): void {
    this.is_login = token ? false : true
  }
}
